package com.qfedu.mapper;

import com.qfedu.entity.RouteEntity;
import com.qfedu.entity.RouteGroupEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RouteMapper {
    public List<RouteEntity> queryList(RouteEntity re);

    public List<RouteEntity> queryRouteList();

    public List<RouteGroupEntity> queryGroupList();

    public List<RouteGroupEntity> queryGrList(RouteGroupEntity rgp);

    public RouteGroupEntity queryGroupById(int rgid);

    public RouteEntity queryRouteById(int rid);

    public boolean insertBoatRoute(@Param("rid") int rid,@Param("sid") int sid);

    public boolean del(@Param("rid") String rid);

    public boolean update(RouteEntity re);

    public boolean insert(RouteEntity re);

    public boolean delGroup(@Param("ids") String ids);

    public boolean insertGroup(RouteGroupEntity rgp);

    public boolean updateGroup(RouteGroupEntity rgp);

    public int count();
}
